<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.carebuddy.petcare.controller.*"%>
<%@ page import="com.carebuddy.petcare.biz.*"%>
<%@ page import="com.db.vo.*"%>
<%@ page import="java.util.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	Carebuddy carebuddy = new Carebuddy();
	PetcareController petcareController = carebuddy.getPetcareController();
	UserController userController = carebuddy.getUserController();
	userController.getCookie(request, response);
	petcareController.listPetcare_details(request, request.getParameter("apply_id"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<title>수탁신청페이지</title>
</head>
<script language="javascript">
	function insert_chk(){
		var frm = document.apply_frm;
		 frm.submit();
	}
</script>
<body class="bodystyle">
	<form action=st_appl_proc.jsp name="apply_frm" method="post">
	<input type="hidden" name="user_id" value="${user_id}">
	<input type="hidden" name="apply_id" value="${details.getApply_id()}">
	<table width="800" align="center">
	  <tr>
	    <td><img src="../../images/st_apply.jpg"></td>
      </tr>
	  <tr>
	    <td>
	    	<table align="left">
		      <tr>
		        <td class="bodytitle">위탁희망일 :</td>
		        <td class="bodystyle">${details.getDate()}</td>
		        <td class="bodytitle">상태확인일 :</td>
		        <td class="bodystyle">${details.getTdate()}</td>
	          </tr>
	        </table>
	    </td>
	  </tr>
	  <tr>
	  	<td>
         	<table align="left">
		    	<tr>
			      <td class="bodytitle">반려동물 정보</td>
		        </tr>
			    <tr>
			      <td class="bodytitle" align="right">분류 </td>
			      <td class="bodystyle">${details.getCategory()}</td>
			      <td class="bodytitle" align="right">종 </td>
			      <td class="bodystyle">${details.getKind()}</td>
		        </tr>
		        <tr>
			      <td class="bodytitle" align="right">이름 </td>
			      <td class="bodystyle">${details.getPname()}</td>
			      <td class="bodytitle" align="right">몸무게 </td>
			      <td class="bodystyle">${details.getWeight()}</td>
		        </tr>
		        <tr>
			      <td class="bodytitle" align="right">나이 </td>
			      <td class="bodystyle">${details.getAge()}</td>
			      <td class="bodytitle" align="right">성별 </td>
			      <td class="bodystyle">${details.getMf()}</td>
		        </tr>
		        <tr>
			      <td class="bodytitle" align="right">중성화여부 </td>
			      <td class="bodystyle">${details.getJsh()}</td>
			      <td class="bodytitle" align="right">털 상태 </td>
			      <td class="bodystyle">${details.getFur()}</td>
		        </tr>
         	 </table>
	          <table align="left">
	          	<tr>
		       	  <td class="bigstyle">병력사항</td>
	          	</tr>
		      	<tr>
			      <td class="bodytitle" align="right">예방접종 </td>
			      <td class="bodystyle">${details.getYbjj()}</td>
		        </tr>
		        <tr>
			      <td class="bodytitle" align="right">치료경력 </td>
			      <td class="bodystyle">${details.getCrgr()}</td>
		        </tr>
		        <tr>
			      <td class="bodytitle" align="right">복용중인 약 </td>
			      <td class="bodystyle">${details.getMedicine()}</td>
		        </tr>
		        <tr>
		       	  <td class="bigstyle">특이사항</td>
	          	</tr>
	          	<tr>
			      <td class="bodytitle" align="right">낯선사람에 대한 경계 </td>
			      <td class="bodystyle">${details.getAlert()}</td>
		        </tr>
	        </table>
	     </td>
      </tr>
      <c:if test="${details.getSitu()=='0'}">
		  <tr>
		  	<td colspan="2" align="center"><input type="button" class="buttonstyle" value="수탁신청하기" onclick="submit();"/></td>
		  </tr>
	  </c:if>
	  </table>
	</form>
	<br><br><br>
</body>
</html>